package com.congee02.modelshellmvn.anno;

import org.springframework.data.jpa.repository.JpaRepository;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@SuppressWarnings("rawtypes")
public @interface NeedSave {

    Class<? extends JpaRepository> repo();

    Class<? extends RecordAdapter> adapter() default DefaultRecordAdapter.class;

    boolean returnUpdated() default true;

}
